package com.jindy.module.copy.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jindy.common.annotation.Excel;
import com.jindy.common.core.domain.BaseEntity;

/**
 * 抄送对象 t_copy
 * 
 * @author jindy
 * @date 2023-03-28
 */
@Data
public class Copy extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增主键 */
    private Long id;

    /** 申请人id */
    @Excel(name = "申请人id")
    private Long userId;

    /** 申请人用户名 */
    @Excel(name = "申请人用户名")
    private String username;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 抄送人id(user_id) */
    @Excel(name = "抄送人id(user_id)")
    private Long copyerId;

    /** 抄送人姓名(username) */
    @Excel(name = "抄送人姓名(username)")
    private String copyerName;

    /** 抄送人阅读状态（0未读，6已读） */
    @Excel(name = "抄送人阅读状态", readConverterExp = "0=未读，6已读")
    private String copyerStatus;

    /** 抄送人阅读时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "抄送人阅读时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date copyerTime;

    /** 流水单号 */
    @Excel(name = "流水单号")
    private String serialNum;

    /** 项目名称 */
    @Excel(name = "项目名称")
    private String projectName;

    /** 订单时间 */
    @Excel(name = "订单时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderCreateTime;

    /** 订单id */
    @Excel(name = "订单id")
    private Long orderId;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("username", getUsername())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("copyerId", getCopyerId())
            .append("copyerName", getCopyerName())
            .append("copyerStatus", getCopyerStatus())
            .append("copyerTime", getCopyerTime())
            .append("serialNum", getSerialNum())
            .toString();
    }
}
